diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-04 01:00:29 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-04 01:00:29 +0300 |
| commit | 1686b0a7cafc8b58929c10f889783286322892df (patch) | |
| tree | 157b6d45697dd2eb2ad8f10caab207a6bef0de93 /src/pages/posts/[...slug].astro | |
| parent | 3f0373ee3c64d80af91ebcbcca37ebdc1ae3de8a (diff) | |
Migrate old content
Diffstat (limited to 'src/pages/posts/[...slug].astro')
| -rw-r--r-- | src/pages/posts/[...slug].astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 02047bd..76e4f28 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -6,7 +6,7 @@ import PostLayout from "@/layouts/BlogPost.astro"; // if you're using an adaptor in SSR mode, getStaticPaths wont work -> https://docs.astro.build/en/guides/routing/#modifying-the-slug-example-for-ssr export const getStaticPaths = (async () => { - const blogEntries = await getAllPosts(); + const blogEntries = await getAllPosts(true); // Include archived posts for direct access return blogEntries.map((post) => ({ params: { slug: post.id }, props: { post }, |
